﻿using System;
using System.ComponentModel.DataAnnotations;
using Orchard.ContentManagement;

namespace Contrib.ContactUser.Models {
    public class UserMessagePart : ContentPart<UserMessagePartRecord> {
        [Required, StringLength(128)]
        public string SentTo {
            get { return Record.SentTo; }
            set { Record.SentTo = value; }
        }

        [Required, StringLength(256)]
        public string Title {
            get { return Record.Title; }
            set { Record.Title = value; }
        }

        public string SentFrom {
            get { return Record.SentFrom; }
            set { Record.SentFrom = value; }
        }

        public DateTime SentDateTime {
            get { return Record.SentDateTime; }
            set { Record.SentDateTime = value; }
        }

        public bool SenderRemoved {
            get { return Record.SenderRemoved; }
            set { Record.SenderRemoved = value; }
        }

        public bool ReceiverRemoved {
            get { return Record.ReceiverRemoved; }
            set { Record.ReceiverRemoved = value; }
        }
    }
}